package com.theaf.core.api.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author:songwenke
 * @Description:菜单
 * @Date:create in 9:34 2017/11/29
 * @Modified By:
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Menu implements java.io.Serializable{
    private Long id;
    /**
     * 父ID,用于线性结构的树
     */
    private Long pid;
    private String code;
    private String name;
    private String title;
    private String url;
    /**
     * 下级数据，用于树形结构的上下级
     */
    private List<Menu> menus = new ArrayList();
}
